//导入封装好的axios
import request from "./request"
import qs from "qs"
//定义一个请求精品得数据   函数形式就不会出现重复调用
export const JingPinAPI = () => request.get("/products/recommend")
//热门兑换
export const HotAPI = () => request.get("/products/hot")


//定义一个发送验证码请求   params 预期{phone : 13444455556}
//短信验证
export const SendSMSAPI = (params) => request.post("/sendSMS", qs.stringify(params))
//手机登陆验证
export const PhoneReginAPI = (params) => request.post("/phoneRegin", qs.stringify(params))

export const WeixinAPI = (params) => request.post("/wechatUsers/PCLogin", qs.stringify(params))

export const Binding = (params) => request.post("/wechatUsers/binding", qs.stringify(params))

export const UserProfiles = () => request.get("/shop/userProfiles")
//详情页面
export const GoodsDetails = (id) => request.get(`/products/${id}`)



